import Router from 'koa-router'
import home from './home'
import user from './user'
import error404 from './error404'
import error from './error'
const router = new Router()

router.use("/home",home.routes(),home.allowedMethods())
router.use("/user",user.routes(),user.allowedMethods())
router.use("/404",error404.routes(),error404.allowedMethods())
router.use("/error",error.routes(),error.allowedMethods())
router.redirect("/","/home")

export default router
